package top.market.redis;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;

public class LyhObjUtils {
    public LyhObjUtils() {}

//    public static <T> boolean isEmpty(LyhParameterWrapper<T> ylsParameterWrapper) {
//        return ObjectUtil.isEmpty(ylsParameterWrapper);
//    }

    public static <T> boolean isNotEmpty(Object obj) {
        return ObjectUtil.isNotEmpty(obj);
    }

    public static <T> Object getProperty(T object, String property) {
       return BeanUtil.getProperty(object, property);
    }

    public static void setProperty(Object object, String property, Object value) {
        BeanUtil.setProperty(object, property, value);
    }



    public static boolean isEmpty(Object primaryKey) {
        return ObjectUtil.isEmpty(primaryKey);
    }

}